from django.urls import path
from roles import views
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register(r'', views.RoleView)

urlpatterns = [
    path('set_menu/', views.SetRoleView.as_view()),
    path('del_role/<int:rid>/<int:mid>/', views.DelRolePermissionView.as_view()),
]

urlpatterns += router.urls
